﻿using System;

using SharedGenomics.Core;
using SharedGenomics.Workbench.Views;
using SharedGenomics.Annotations;

namespace SharedGenomics.Workbench.Presenters
{
    public class NcbiSummaryPresenter : AnnotationPresenter<NcbiAnnotation>
    {
        public NcbiSummaryPresenter(INcbiAnnotationSummaryView view)
            : base(view)
        {
            this.NcbiSummaryView = view;
        }

        protected override void OnAnnotationSet(NcbiAnnotation annotation)
        {
            annotation.ThrowIfNull("annotation");
            this.NcbiSummaryView.NcbiAnnotation = annotation;
        }

        private INcbiAnnotationSummaryView NcbiSummaryView { get; set; }
    }
}
